Write code to get physics trajectory motion of arrow